import 'package:flutter/material.dart';

class PageAuthorize extends StatelessWidget{
  PageAuthorize({Key key, this.title}) : super(key: key);
  final String title;


  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text(this.title),
      ),
      body: Center(
        child: Container(
          margin: EdgeInsets.only(top:200),
          child:Column(
            children: <Widget>[
              Text(
                  "保函360",
                  textAlign: TextAlign.center,
                  style:TextStyle(
                      color: const Color.fromRGBO(0, 0, 0, 1),
                      fontSize: 24
                  ),
              ),
              Container(
                  margin: EdgeInsets.only(top:20),
                child: Text(
                  "需要您的微信账户授权",
                  textAlign: TextAlign.center,
                  style:TextStyle(
                      color: const Color.fromRGBO(0, 0, 0, 1),
                      fontSize: 24
                  ),
                )
              ),
              FlatButton(
                child: Container(
                  height: 49,
                  margin: EdgeInsets.only(top:20),
                  decoration:BoxDecoration(
                    gradient: LinearGradient(colors: [Color.fromRGBO(10, 207, 254, 1),Color.fromRGBO(73, 90, 255, 1)]),
                    borderRadius: BorderRadius.all(Radius.circular(9.0)),
                  ),
                  child: Center(
                    child: Text(
                      "点击授权",
                      textAlign: TextAlign.center,
                      style: TextStyle(fontSize: 17,color: Color.fromRGBO(255, 255, 255, 1)),
                    )
                  )
                ),
                onPressed:()=>Navigator.pushNamed(context, "/search"),
              )
            ],
           )
          ),
      ),
    );
  }
}